import request from '@/utils/request'

export function pageRequest(data) {
  return request({
    url: '/category/page',
    method: 'post',
    data
  })
}

export function list() {
  return request({
    url: '/category/list',
    method: 'post'
  })
}

export function remove(data) {
  return request({
    url: '/category/delete',
    method: 'delete',
    data
  })
}
export function moveSort(data) {
  return request({
    url: '/category/moveSort',
    method: 'post',
    data
  })
}

export function categoryCount() {
  return request({
    url: '/category/count',
    method: 'get'
  })
}
